//
//  JDShopCartModel.swift
//  DragonWallet
//
//  Created by volantPig on 2024/8/10.
//

import UIKit
import HandyJSON

class JDShopCartModel: HandyJSON {
    
    var goodsList: [JDShopCartGoodsModel]?
    var shopId: String?
    var shopName: String?
    
//    {"goodsList":[JDShopCartGoodsModel],
//        "shopId":1,
//        "shopName":"三生有幸茶艺工艺"}
    
    
    
    
    
    required init() { }
}

class JDShopCartGoodsModel: HandyJSON {
    
    var goodsMemberLevel: String?
    var origin: String?
    var isSelected: Bool = false
    
    var goodsMainImgUrl: String?
    var addTime: String?
    var count: Int?
    var goodsId: String?
    var specificationName: String?
    var goodsName: String?
//    var specificationId: String?
    var goodsSkuId: String?
    
    var salePrice: Int?
    var salePriceText: String?
//    {
//        "goodsName":"黑眼镜",
//        "goodsId":1,
//        "salePrice":150000,
//        "specification":"黑色",
//        "salePriceText":"150.00",
//        "count":6,
//        "addTime":"2024-08-10 01:39:27",
//        "goodsMainImgUrl":"https:\/\/img11.360buyimg.com\/n1\/s450x450_jfs\/t1\/54403\/16\/24313\/48223\/669b4cd9F1f1e51e2\/91cdf0091dec0c68.jpg"
//    }
    
    
    required init() { }
}

//{"msg":"ok","data":[{"goodsList":[{"goodsMainImgUrl":"https:\/\/img11.360buyimg.com\/n1\/s450x450_jfs\/t1\/54403\/16\/24313\/48223\/669b4cd9F1f1e51e2\/91cdf0091dec0c68.jpg","addTime":"2024-08-10 01:39:27","count":6,"goodsId":1,"specification":"黑色","goodsName":"黑眼镜"},{"goodsMainImgUrl":"https:\/\/img11.360buyimg.com\/n1\/s450x450_jfs\/t1\/54403\/16\/24313\/48223\/669b4cd9F1f1e51e2\/91cdf0091dec0c68.jpg","addTime":"2024-08-06 00:41:46","count":2,"goodsId":1,"specification":"五彩斑斓黑","goodsName":"黑眼镜"}],"shopId":1,"shopName":"三生有幸茶艺工艺"}],"code":0}
